<?
        require_once('../../Inc/Global.php');
        require_once('ManufacturerData.php');
        require_once('../../MembersOnly/Authentication.php');
        $result = GetManufacturers();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../ECommSite/ECommCss.css" />
<!-- Tab Icon -->
<link rel="shortcut icon" href="http://mobilitysite.com/wp-content/uploads/2007/08/mlb.jpg"> 
<title>Manufacturer Index</title>
</head>
<body>
<img src="http://www.bpsportscards.com/images/store_version1/storelogo/BP%20Cards.jpg"
	alt="BP Sports Cards" width="640" height="170" class="float" />
	<br/>
	<br/>
	<br/>
	<div>Welcome <?=GetUserName()?><div> <input type="button" value="Log Out" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/WebClass/MembersOnly/LogOut.php'" />
	<div>Logged in as: <?=GetUserClearance()?></div>
	<br/>
	<br/>
	<br/>
	<br/>
<table border="1">
			<tr>
			<td colspan="3">Manufacturers Table</td>
			</tr>
                        <tr>
                                <th>Actions</th>
                                <th>ID</th>
                                <th>Manufacturer</th>
                        </tr>
       
        <? while($rs = $result->fetch_assoc()){ ?>
                <tr>
                        <td>
                                <a href="View.php?ID=<?=$rs['ID']?>">View</a>
                                <a href="EditAddress.php?ID=<?=$rs['ID']?>">Edit</a>
                                <a href="Delete.php?ID=<?=$rs['ID']?>">Delete</a>
                               
                        </td>
                        <td><?=$rs['ID']?></td>
                        <td><?=$rs['Manufacturer']?></td>
                        
                </tr>  
       
        <? } ?>
       
</table>
<a href="EditAddress.php">Click here to add a new manufacturer.</a>
<br />
<input type="button" value="Go Back" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/WebClass/ECommSite/Admin.php'" />

</body>
</html>

